---
layout: m1x_soap
title: Category Attributes
---


<h2><a name="MAPI-CategoryAttributes-Module%3AMageCatalog"></a>Module: Mage_Catalog</h2>

<p>The Mage_Catalog module allows you to manage categories and products.</p>

<h4><a name="MAPI-CategoryAttributes-CategoryAttributes"></a>Category Attributes</h4>

<p>Allows you to retrieve the list of category attributes and options.</p>

<p><b>Resource Name</b>: catalog_category_attribute</p>

<p><b>Aliases</b>:</p>
<ul>
	<li>category_attribute</li>
</ul>


<p><b>Methods</b>:</p>
<ul>
	<li><a href="catalog_category_attribute.currentStore.html" title="catalog_category_attribute.currentStore">catalog_category_attribute.currentStore</a> &#45; Set/Get the current store view</li>
	<li><a href="catalog_category_attribute.list.html" title="catalog_category_attribute.list">catalog_category_attribute.list</a> &#45; Retrieve the category attributes</li>
	<li><a href="catalog_category_attribute.options.html" title="catalog_category_attribute.options">catalog_category_attribute.options</a> &#45; Retrieve the attribute options</li>
</ul>


<h4><a name="MAPI-CategoryAttributes-Faults"></a>Faults</h4>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 100 </td>
<td> Requested store view not found. </td>
</tr>
<tr>
<td> 101 </td>
<td> Requested attribute not found. </td>
</tr>
</tbody></table>


<h4><a name="MAPI-CategoryAttributes-Examples"></a>Examples</h4>

<h5><a name="MAPI-CategoryAttributes-Example1.Retrievingattributesandoptions"></a>Example 1. Retrieving attributes and options</h5>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: java; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');
$attributes = $proxy-&gt;call($sessionId, 'category_attribute.list');
foreach ($attributes as &amp;$attribute) {
   if (isset($attribute['type'])
       &amp;&amp; ($attribute['type'] == 'select' || $attribute['type'] == 'multiselect')) {
       $attribute['options'] = $proxy-&gt;call($sessionId, 'category_attribute.options', $attribute['code']);
   }
}
var_dump($attributes);</pre>
		</div>
</div></div>
